import Layout from '@/layout'

export default {
  path: '/supplier',
  component: Layout,
  redirect: '/supplier/list',
  name: 'Supplier',
  meta: { title: '供应商管理', icon: 'message', noCache: true, roles: ['supplier'] },
  children: [
    {
      path: 'create',
      name: 'SupplierCreate',
      component: () => import('@/views/supplier/create'),
      meta: { title: '添加供应商', icon: 'star', noCache: true }
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/supplier/edit'),
      meta: { title: '编辑供应商', noCache: true },
      hidden: true
    },
    {
      path: 'list',
      name: 'SupplierList',
      component: () => import('@/views/supplier/list'),
      meta: { title: '供应商列表', icon: 'star', noCache: true }
    },
    {
      path: 'check',
      name: 'SupplierCheck',
      component: () => import('@/views/supplier/check'),
      meta: { title: '待审核列表', icon: 'star', noCache: true }
    }
  ]
}
